package function

import (
	"github.com/dlclark/regexp2"
)

func FilterNumberAndMask(text string) (res string) {
	reg := regexp2.MustCompile(`\b\d+\b(?!\.)`, 0)
	res, _ = reg.Replace(text, "x", -1, -1)
	return
}
